import 'package:equatable/equatable.dart';


abstract class RemoteState extends Equatable {

    RemoteState([List props = const []]): super(props);
}

class RemoteIntial extends RemoteState {

    @override
    String toString() => "远程功能待启用.....";
}

class RemoteSendingToBackend extends RemoteState {

    @override
    String toString() => "发送至后台中......";
}

class RemoteSendingToBackendError extends RemoteState {

    final String error;
    RemoteSendingToBackendError({this.error}) : super([error]);

    @override
    String toString() => "发送至后台失败: ${error}......";

}

class RemoteSendingToBackendSuccess extends RemoteState {

    final String serviceType;
    final String eventId;
    RemoteSendingToBackendSuccess({this.serviceType, this.eventId}) : super([serviceType, eventId]);

    @override
    String toString() => "发送至后台成功......";
}

class RemotePollingToBackend extends RemoteState {

    @override
    String toString() => "发送至车机......";
}

class RemotePollingTobackendFailure extends RemoteState {
    @override
    String toString() => "发送至车机失败......";
}

class RemotePollingToBackendSuccess extends RemoteState {
    @override
    String toString() => "发送至车机成功......";
}
